import http from '@/request/request.js'
//获取openid
export const getOpenid = (data) => {
  return http.post('user/getopenid', data)
}
//登录 
export const userWxlogin = (data) => {
  return http.post('/user/wxlogin', data)
}

//我的页面信息
export const userInfo = (data) => {
  return http.post('/Users/getuser', data)
}
// 收益明细
export const revenueDetails = (data) => {
  return http.post('/Users/revenue_details', data)
}

// 个人订单
export const peprsonalOrders = (data) => {
  return http.post('/Users/peprsonal_orders', data)
}

// 服务商订单
export const serviceProviderOrders = (data) => {
  return http.post('/Users/service_provider_orders', data)
}


// 我的团队
export const usersTeam = (data) => {
  return http.post('/users/team', data)
}

//邀请码 
export const usersInvite = (data) => {
  return http.post('/user/invite', data)
}
//奖励池金额
export const getRewardPool = (data) => {
  return http.post('/Reward_pool/getRewardPool', data)
}
//判断权限 
export const isserver = (data) => {
  return http.post('user/isserver', data)
}

//设置头像
export const settingAvatar = (data) => {
  return http.post('user/getwxavatar', data)
}


//设置昵称
export const settingNickname=(data)=>{
	return http.post('user/getwxuser', data)
}

//是否有推荐服务商权限
export const isServerRecomm=(data)=>{
	return http.post('users/recommendation_servers', data)
}
